<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>main</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<%@include file="../css.jsp" %>
<link href="${resourceRoot }/third-party/jquery-pager/Pager.css" rel="stylesheet" type="text/css" />

<style type="text/css">
 	body {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
	label.error {
	margin-left: 10px;
	width: auto;
	display: inline;
	color: red;
}
</style>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="/" target="_blank" >首页</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="active"><a href="/user/admin">网站后台</a></li>
            </ul>
            <div class="navbar-form pull-right">
            	<c:if test="${not empty admin }"><span class="label label-success">${admin.username }</span></c:if>
              	<c:if test="${not empty admin }"><a href="/user/admin/loginout">退出</a></c:if>
            </div>
          </div>
        </div>
      </div>
    </div>

<div class="container">
	
	<div class="row">
		<!-- left -->
		<div class="span2">
	        <ul class="nav nav-list" id="manage_nav">
			      <li manageType='user'><a href="javascript:void(0)" >用户管理</a></li>
			      <li manageType='content'><a href="javascript:void(0)">内容管理</a></li>
			      <li manageType='tag'><a href="javascript:void(0)" >标签管理</a></li>
			      <li manageType='domain'><a href="javascript:void(0)">域名管理</a></li>
			      <li manageType='domain/link'><a href="javascript:void(0)" >友情链接</a></li>
			      <li manageType='article'><a href="javascript:void(0)">文章管理</a></li>
			      <li manageType='notice'><a href="javascript:void(0)">通告管理</a></li>
			      <li manageType='photo'><a href="javascript:void(0)">广告图片</a></li>
			      <li manageType='family'><a href="javascript:void(0)">家族管理</a></li>
			      <li manageType='seo'><a href="javascript:void(0)">seo</a></li>
			</ul>
      	</div>
		<!-- right -->
		<div class="span10" id="div_right">
			<div class="page-header">
  				<h1>欢迎进入后台管理<small>wow私服</small></h1>
			</div>
			<div class="btn-group">
			  <button id="btn_update" class="btn btn-large btn-primary" onclick="updateIndexPage();">更新首页内容</button>
			</div>
		</div>
	</div>
</div>


<%@include file="../js.jsp" %>
<script src="${resourceRoot }/js/common.js"></script>
<script src="${resourceRoot }/js/jquery.form.js"></script>
<script src="${resourceRoot }/third-party/jquery-pager/jquery.pager.js"></script>
<script src="${resourceRoot }/third-party/My97DatePicker/WdatePicker.js"></script>
<script src="${resourceRoot }/third-party/jquery-validation/jquery.validate.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
	if ($.isFunction($.bootstrapIE6)) $.bootstrapIE6($(document));
	$('#manage_nav li').click(function(){
		var manageType=$(this).attr("manageType");
		var li=$(this);
		var url="/"+manageType+"/manage";
		$('#div_right').load(url);
		li.addClass("active").siblings(".active").removeClass("active");
	});
	
});

</script>
</body>
</html>